package cn.ivicar.cloud.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import cn.ivicar.config.ConfigUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class IovProperties {
    private static transient final Logger LOGGER = LoggerFactory.getLogger(IovProperties.class);
    private static Properties properties = new Properties();
    static {
        try {
            InputStream inputStream = ConfigUtil.getConfigReader().getResourceAsStream("/iov-cloud.properties");
            properties.load(inputStream);
        } catch (IOException e) {
            e.printStackTrace();
            LOGGER.error(String.format("读取配置文件失败。 ErrorMsg:[%s]", e.getMessage()));
        }
    }

    public static Properties getProperties() {
        return properties;
    }
}
